package com.boot3.service.impl;

import com.boot3.dao.UserDao;
import com.boot3.dao.impl.UserDaoImpl;
import com.boot3.pojo.User;
import com.boot3.service.UserService;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

/**
 * @author wzm
 * @create 2023-11-30 10:24
 * project_name:web2310
 * @Description
 */

@Service
public class UserServiceImpl02 implements UserService {
    //创建dao对象
    private UserDao userDao = new UserDaoImpl();

    @Override
    public User getUserById(Integer id) {
        //调用dao方法
        return userDao.selectUserById(id);
    }
}
